import $ from "../js/jquery-3.4.1.min.js";
export default function ajax({ url, type, data, }) {
  return new Promise((resolve, reject) => {
    $.ajax({
      url: 'http://192.168.13.6:8000/' + url,
      type: type,
      data: data,
      success(res) {
        resolve(res);
      },
    })
  })
}

